summaryrefslogtreecommitdiff
path: root/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro')
-rw-r--r--src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro
new file mode 100644
index 0000000..e4f62cb
--- /dev/null
+++ b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro
@@ -0,0 +1,30 @@
+---
+import Page from '$layouts/Page.astro';
+import localeStaticPaths from '$lib/localeStaticPaths';
+import translate from '$i18n/translate';
+import tPage from '$i18n/translations/pages/scotsounPaymentSuccessConfirmation';
+import type Locale from '$types/Locale';
+import { getScotsoun } from '$data/scotsoun';
+import type ScotsounId from '$types/ScotsounId';
+
+export async function getStaticPaths() {
+ const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[];
+ return scotsounIds.flatMap((n) =>
+ localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, issueNumber: n } }))
+ );
+}
+
+const locale = Astro.params.locale as Locale;
+const scotsounId = Astro.params.scotsounId as ScotsounId;
+const t = translate(locale);
+---
+
+<Page locale={locale} title={t(tPage, { key: 'title' })}>
+ <section>
+ <h1>{t(tPage, { key: 'title' })}</h1>
+ <p>{t(tPage, { key: 'payment-confirmation-message', scotsounId })}</p>
+ <a class="link" href="./">
+ {t(tPage, { key: 'back-button-text', scotsounId })}
+ </a>
+ </section>
+</Page>